Added authentication controller for json side