began moving login form to javascript