some simple validations added