Added functionality for creating users and posts