fixed valdiation issues when switcing form between sign up and sign in