Add a validation to the message model requiring a user_id before a save or update.