do a password recovery. This will allow you to get back into the config so you can remove the login local or add a user ID and password.
check this post out on how to do password recovery:
https://supportforums.cisco.com/discussion/11607366/how-reset-cisco-router-1841-password
please rate if useful
Please remember to rate useful posts, by clicking on the stars below.