fixed check for existing user