got login and database more-or-less working