Update Method login in class connector + making class visible for testing in unitTest