Get valid data from post method