added load post from db
added login, cookie, edit post