# Username & password login

**URL:** https://forum.kirupa.com/t/username-password-login/294407
**Category:** Uncategorized
**Created:** [August 13, 2009, 2:44pm UTC](https://forum.kirupa.com/t/username-password-login/294407 "2009-08-13T14:44:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mayuresh](https://avatars.discourse-cdn.com/v4/letter/m/f19dbf/32.png) [@mayuresh](https://forum.kirupa.com/u/mayuresh)
#### Post date: [August 13, 2009, 2:44pm UTC](https://forum.kirupa.com/t/username-password-login/294407/1 "2009-08-13T14:44:34Z")

</div>

hi  
iam tryin to create a login system  
i want the username to b only “mayuresh”  
& password to b “nagpure”  
blow is my code  
anyhelp wuld b appreciated

go\_btn.addEventListener(MouseEvent.CLICK,perform)  
function perform(event:MouseEvent):void  
{  
if(username.text == “mayuresh”&&pass.text == “nagpure”)  
{  
gotoAndStop(2);  
}  
else  
{  
gotoAndStop(1);  
trace(“Incorrect Username”);  
}  
}  
stop();

mp prob is eventhough if username is mayuresh and password is nagpure it traces (“Incorrect Username”)
