add header file and comment for LoginActivity and RegisterActivity.