Add constraints to users and microposts