JSON return to login page is properly parsed