Throws error when req.login callback function is missing (and is using session).
Fix merge conflicts.
Add test case.