Define the login status constants in the back end (see #4099, #5279)