made login more robust
build