validations work properly when fields are blank