clear profile data when updated; polish profile save function.