Refactoring the editor for implementation of credentials.