Adding login code