Add constraints to new user and new post