created validations for tweets and flash messages