added validations and tests