User registration and login pages now hooked up to database (possible bug?)