Update app/models/message.rb

form validator added