Fix for login after reload