Added validation to signup and login forms.