Started work on loginHandler