Added regex to check input

On submit, we now check to ensure that the message is not either empty
or just whitespace, before inserting it into the database.