cleaned up loginTab.js, hostname not resolved

Signed-off-by: Aman <amanb014@gmail.com>