setting up login view and forms; add control of db in app;add macros for rendering form;fix typo & errors