fixed profile info saving bug. Working on bug in logout function