Refactored the code to use reLoginFromKeytab instead of loginUserFromKeytab

Signed-off-by: Yinan Li <liyinan926@gmail.com>