Must be a typo, but he is using assignment operator which forcefully sets value:
Code: 
if(x="BC102034568@vu.edu.pk")
This:
Code: 
if(x==="BC102034568@vu.edu.pk")
Also, make sure to return false if it doesn't matches else it will submit the form.