added indexPost action
1.added get Id action 
2.changed insert Into Db action
3.added 2 parameters for function validate
4.added get user by username action
1.added post model
changing error message for invalid login
added flash messages for successful or not successful added posts
added base url for action of the submit button