added login functionality and form
added template files