integrates users and admin into post class