added validation feature to tasks page