Simple validation logic on login form.