Fixing bug that cause email check to pass everytime