move login form to external file