Keep registration form state on close