changed some validation code for signup page