when user registers user is automatically logged in