fixed Login
updated config and ServiceFactory