fixed the guest user issue in application controller