Added relationship btwn customer and account_period
addEvent function and call during login, registration, etc