Refactored login form as a independent view and split the templates to partials