fixed login encrypt