added validations to the user and order models