check username and password from signup before sending to the server