fixed null result on registration and profile creation