control eventafter login