User validation bug fix