Added validations for attributes