add validations

empty lines at the end, please remove them