Added hooks on user login and logout that query Agate for authentication