frontend validation for login added, fixed sign up bug