Fixed HTTP Status code when ajaxLogin is set