Validate username during basic auth

Before this commit, only the password was checked

[#59778088]