Added validations to User and Microposts.