fix validates, added specs