Reworked login view and controller (client and server).