Add lastlogin to auth file

Fixed a bug in auth.lua (last_login not being a number) and few problems in chat command. Parent PR: #1745
```lua
-- Is set to 0 if unknown
```