I have a form which have two tabs one for sign-in and the other for sign-up. I am having two separate functions for each tab. On sign-in after entering username and password, Its again throwing the alert message as username can not be blank. Where i am wrong. Please help me.