sorted out the validation for signup