Finished RegisterActivity can run twice