fixing user validation