fix users and post
added validations

fixes #1