Fix to check if AuthComponent is loaded or not