Example source code for Re-use GORM Validations