Apparently, setting $this is a no-no.
Changed the place where email validation happens. This should now work.