Fixing bug in appointment request code that was creating duplicate users