implemented basic functionality for users and posts