Added Error handling for creating duplicate users

Added Error handling for creating duplicate users