Automatic login after registration