Fixes on LoginBox.jsx
Fixes according to CR.
Also fixed a bug in registerUser.ts