Fixes for posts and users

Some small fixes, take a look at the changes and let me know if you have any questions.