Login and register form validation for empty field