added login with database and updated som files