[TASK] Move LoginProvider logic into a separate class