Only logged in user can edit and update profile. Fix edit spec.