Make 'edit profile' page work properly.