enable auto login after registration