Create login.js

moved the javascript for form validation here since login.php was getting too long