Add validations to user and micropost model