There should be a multi-step login flow.
By that, I mean user should firstly input the e-mail and click the submit button.
After clicking the button, by hitting the validation endpoint on the api, we will validate the input and in case the account exists with inserted email, user will receive another input field to input his password. Once again user submits the data, he will proceed to dashboard, or something else which still needs to be taken care of.
There should be a multi-step login flow. By that, I mean user should firstly input the e-mail and click the submit button.
After clicking the button, by hitting the validation endpoint on the api, we will validate the input and in case the account exists with inserted email, user will receive another input field to input his password. Once again user submits the data, he will proceed to dashboard, or something else which still needs to be taken care of.