Added check to prevent multiple users with same name