added exception if input is empty or greater than 250 char