switched to db.py for logins
added error div; formatting