added basic validations to models