php utilities

sanitise user inputs
fixed directory
display post functionality

display posts on home page
currently only displaying first post (bug)
fixed bug - not displaying all posts

only 1st post was displayed previously
all posts are displayed now