login view optimize && wipe func