register form cleanup