Added error messages to handle only a single word being entered