added onLogOn hook, and mongodate for mongouser