using timeouts instead of intervals
check for login on all AppControllers using loginRequired function
loginRequired might be a value not function