creating customer model methods and validations