check for valid callbacks

check for callback === 'function' in logout and notify methods