Added check for existing emails during registration