added validation for new posts, as well as links to home and back