Why are we checking the post data when we already pass the post data to this method?