reworked validate to get