fixing user validation with ajax