The check for /login might need to be more flexible, since people sometimes mount Foreman at /foreman, so it might be /foreman/login?