added login form validation JS.