updated authorization and allow doctors and users to update their profile email