Hello, dear.
If you can use the root username to log in, and the username you used before is in the Administrator Groups.
You should check the Security Settings, you can check the following information:
1. Check whether the user password has expired.
2. Check whether the user is locked.
