add post logic and user logic