added json response to auth-logic