Fixed bugs when updating profile

Updating user profiles should now work without problem