getting validation working