Added functionality for logging in

- Added methods to the controller to handle and validate the user login
- Corrected a spelling error in the User model; Added inline comments
- Added custom routes to routes.rb for the user login and account
profile pages
- Moved the contents of the user's form template back into the new
template
- Added an html template for the login page
- Added a new template for the account profile page. This will
eventually contain the user's personal posts, so they can edit them.
Change the post authentication

- Change how posts are authenticated. Instead of using an http
authentication it is now using the user class and checks for a valid
session
-
Added an author column to both posts and comments

- Added an author column to both posts and comments  using a migration
Added a menu to every page

- Added a menu to the main page
- Added links to Posts, the user profile and log out
- Added the path to logout to the routes
Added author upon creation of comment and post

- Added functionality for saving the author when a comment or a post is
created
- Added a global current_user which is the current logged in user
Added a hidden field to comment form, so the author can properly be saved

Added a hidden field to comment form, so the author can properly be
saved
Added the user name to individual comments and reversed the order of comments and posts

- Ordered blog post and comments in individual blog posts by the latest
one first
- Added code to get the name of a comment author if it exists
Added registration route for user and logout functionality

Added registration route for user and logout functionality
Style updates for post elements

Style updates for post elements
Added a user's profile page by user id and added the user's personal blogs

- Added a route for getting the user profile by id
- Added code for posts to a user's profile
Wrapped the post template in a div with a form class

Wrapped the post template in a div with a form class