Added validation to microposts and added relationships between user and microposts