add part of RegisterActivity