Verify groups string is not empty before trying add user to groups