Edit profile feature

Originally it goes to edit mode even after user clicks "OK" to clear
away the warning message about not signed-in.

Changed it to not go to edit mode if user didn't signed-in.