Getting and sanitize the data