Fixed RegisterForm compile error