[TASK] Refactor Login.js

[*] Rewrite the Login.js to work correctly with both Login and LoginPanel requests