Added check for existing emails during registration - FIXED BUG