Added error control when request to controller are missing parameters.