fix error with registration process and validation