fix Login use pointer