validations

some basic validations were added and some other smaller changes.