Android app test. Added error handling to loginHandler. Added json responses