Put login form in a template file #1811