improved login view and other changes