Add invalid html class for invalid input in register form