Fix issue with login request helper. Fixes #1047

Any POST to the diagnostics app was being treated as a login request.