added login phase