input validation for microposts