Added basic login functionality and templates