working on the database and user login in