little improvement associated with database connection and it's mechanism. currently only able to login using user's email