Tidy form.
Fix date filtering for messages.