Improved user validation