Added check for post request. This controller accepts only post requests.