improve code factorisation on login phase