Auto login after registering user