Handle state of snippet-writer for login