fixes before_validation on user decorator to use if condition