[#2616] login implementation.