Fixed bug in mongoose and passport usage.