Fixed problems with dbManager and login.html.
NOTE: Login is now working.