Returning error if no data submitted