fix user validation