partial login implementation