Fixes switching form of authentication not returning 404;
Merge pull request #457 from jerone/issue-456

Fixes switching form of authentication not returning 404;

merge