pulling the JS for a login out to its own file

login and password reset features are largely done