Added error checking to signup