Registering and loging in with username.