Fixed HTTP Status code when ajaxLogin is set
Merge pull request #2781 from davidsteinsland/2.5

Fixed HTTP Status code when ajaxLogin is set