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
Is that better?