Added Validations to User and Posts model