Admin Approval for User Registration and Login in ERPNext

In ERPNext, after a user registers, the admin must review and approve the registration to grant access. Only after receiving admin approval can the user log in.

For that you need to create a workflow state.

Reference- Workflow State