Added custom login page and login rules, added database connecting and
daos stubs.