Trying to validate user sign up both on server and client