[ADDED]: added simple validations.