Fixing logout not clearing the user defined on catalogue