added login login to check db for user