Add more login form validation logic and fix .light