Added validation to users and microposts