Fixing bug for incorrect email validation