fixing before_validation