Fix issue with login request helper

Any POST to the diagnostics app was being treated as a login request.
Merge pull request #1048 from jugglingnutcase/diagnostics-login-fixes

Fix issue with login request helper. Fixes #1047