adding validate methods