Call login callback only if defined