Added a redirect to post when creating a post
added validations for the post title and content