fixed log in

basic fix for log in db still needs update