profile functions moved to profile module from auth module