Cache login result
Renamed some factories