Add validations to transaction model