Fixed issue with amplify tha the request was not required correctly