added basic validations