WEB-5 added proper error handling for controller and also controller
will return proper json rather then 400/500
WEB-4
added some loggings to debug it on dev env