test user before save it