adding validation to input & done to task