added a url for homepage
added validation and error message to posts