Add JSON for login and change the success/info/error constant names (removed "FLASH_" from them).