Fixed user validation api