Edit Profile mostly done

Query does not work. Problem identical to Robbie's.