Added save profile functionality