Fix login notifications bug

Also add new debugging