Fixed some issue with register and profile update