Completed LoginManager and RegisterActivity logic