TG-4 Added validation to registration form