Entered a validation method for inputs before creating a new post.

Also, upon validation failure, redirected back to the “create” action
with the validation errors. Updated the “create” view so that all the
validation errors are shown to the user.
Created a master blog layout.