adding in commented out code for new loginHandler