validation bug fixed