Move login to separate module

Signed-off-by: toshle <rosen_ra4ev@abv.bg>