Refactor template
Make login page