implemented logout
created post entity