Added validtions to post.rb and updated new template to show errors.