# Fix error - The admin user registration is disabled, no redirect to '/Util/Register' will happen.

### Issue

If you install a fresh instance of CMS 12, register yourself with the admin user for the first time, and then forget your password, you may encounter issues when trying to log back in after several days, as new user registration is currently disabled.

Usually, you get the below message in the console

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1690414823527/a827f9b7-1e9e-4035-9461-e47e0fcdc762.png align="center")

### Fix - Delete Admin user from the database

* Open your project in Visual Studio
    
* Open App\_Data folder
    
    ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1690415069546/49e4f6c0-04b0-4af2-bbba-71b0746fcc52.png align="center")
    
    * It opens SQL server explorer right in your Visual Studio
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1690415136559/94bfbeb9-0583-43e3-9a65-7ae7f6b47a42.png align="center")
        
    * Right-click on database AlloyCheck.mdf and select "*New Query*" option from the context menu
        
    * Run below query to delete your admin user
        
        `delete from AspNetUsers`
        
    * Close your Visual Studio to terminate the connection with SQL
        
    * Run `dotnet run` on the terminal of your project path
        
    * Now you will be automatically redirected to /Util/Register page to create a new admin user
