some work on validations