errors map transfer into validate method implemented