Add login lib
Change Login to model