Made Cancel work in popup registration