loginmodel plays nice with json