cahnging mongoose queries for login and initsetup