finished exercise for validates