It's because you have the admin plugin, when you have the admin plugin we automatically provide the rolerole. Role is not allow to be set from the client, which is why you're getting this error.
Do you suggest any way to fix it? I mean, on my website there are three types of users: admin, engineer, and company. Maybe I should change the name in the field or something?
The way they sign up must be different (different sign-up forms). For example admins usually must be invited by other admins, most cases this means they sign up as a normal user and another existing admin would change their role using code.
For enginner, I assume not everyone can sign up as, you must have a system in place to only allow verified enginners to access a specific sign-up form, then once they sign-up you can use backend code to update their role on the DB
Alright, then I’ll do it this way. Actually, I have both influencer and company—they are just regular users on my website. Admin is the person who manages everything. So I’ll just change the role name to something else so they don’t conflict.