some basic validations added