validation type working now