Refactored RegisterActivity and RegisterActivityUnitTest add