Added validations to user and post