Added callback to register form