set user and post objects