fix 500, when user is lazy and register