Managed to fix the issue by using the windows 10 rollback tool. Seems the version number that I managed to reset to is higher than it should be. The rollback tool will download a different version of wp8.1 and let you install and the app and register again.