commiting some updates to the login class for using the database