Fixing authentication bug for profile edits.