Getting and posting tasks (with some validations)