fix login ctrl and service use  instead of location