added frontend validation to signup form