Using nodeify
Migrated login method to Q