got rid of unnecessary require in user -- db is required in global, user is required in global, and checklogin requires global, so dbh is accessible by user