updated login view (doesnt work now)