First changes for a future login system on both client and server sides.