[improvement] login form validation