Completed isProfileEmpty and update profile

for back end