Added validations

Perceived complexity for validate_attributes is too high. [9/7]