updated readme

added input validation