fix issue with auto login after account creation