Fix: redirects to login after server restart insted of throwing a error