GLACIER Normally in login page when we enter username and press enter it asks for password field and pressing enter again it clicks on submit right?
No that's not actually normal. Normal behavior is to attempt to login on press ENTER. Press TAB key, and it will jump from username to password. This is default behavior for for the native browser login prompt, see example:
https://demo.photo.gallery/examples/features/password/
It's also how it works in other dialog popup examples:
https://sweetalert2.github.io/recipe-gallery/login-form.html
That is expected behavior. Why press the ENTER key to jump to password input? Normal is to use the TAB key. Also, keep in mind some users browsers/plugins will remember and automatically populate username and password fields, in which case the user just wants to login immediately by clicking ENTER.
GLACIER Also, instead of !Login it should show all fields are required / Please enter both username and password
I agree it would be better, but then we need to create translations for all these long texts, and I want to keep Files Gallery simple and minimalistic. Nobody really cares what it says "(!) All fields are required", they already know that. Just show a simple alert, in case they try to login without populating the fields, which they have no reason to do. Everyone knows the inputs must be populated.
GLACIER In first login page on hitting enter it took to password input however in second login page it directly hit on submit
What do you mean first and second login page? Default FORM behavior, is to attempt to submit the form on click ENTER. Never does ENTER navigate to next input field. See examples:
https://www.w3schools.com/html/html_forms.asp
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form
As you can see, default behavior in forms, will never jump to "next" input on ENTER. It always tries to submit.