start extracting frontend_login to template files