Add some isEmpty checks

Change-Id: I735da5a05c734f1c536316a222843072b97a9008
Signed-off-by: Jeremy Ho <jujaga@gmail.com>
Disable login UI and session timeout set to 0

Change-Id: I050e5bcdbcdf33ae02efbee8c895418135e77556
Signed-off-by: Jeremy Ho <jujaga@gmail.com>