Made the LoginView communicate with the server when logging in and fixed a UI display issue