connect user login to the database