Fix user recordlogin

Fixes #381