add validations for key