Adding database support for login page.