Added templates and some logic
Added login page and some logic