[lib][web][native] Refactor actions in user-actions.js pt.3 - login
Summary: issue: https://linear.app/comm/issue/ENG-5283/refactor-login-action
Test Plan: tested that it is possible to login and no errors appear
Reviewers: michal, kamil, ginsu
Reviewed By: michal
Subscribers: varun, ashoat, tomek, wyilio
Differential Revision: https://phab.comm.dev/D9648