sets username and password in _register in server User
adds client User register() and calls it from the register form submit on the home page