add login form validation