login form with validation showing error messages as user types