Adds basic client side validation for registering