login view optimized