Added form validation and sorted posts by submitted timestamp.