Added validation to sign up and sign in.