preparing Profile authentication