fix error with validations