working login view