added a constructor and a new action
changed code for validateUser action
added logout controller
added getAllPostsByUserId function that returns the subjects for each post of the logged user
setting flash messages for successful/ unsuccessful logout
1.setting logout button
2.setting flash messages for successful/ unsuccessful added posts
added view for all posts from logged users
created auth library for login,logout, isLoggedIn and getUserId action