started hooking up users in the database, and fixed a few bugs along the way