validation of register form now works fine according to the UC4 demands.