Login form connected to application