fix 500 error on settings page.

Moving to DynamoDB V2 APIs returned Decimal instead of int in DB queries.
Doing a binary `&` requires a cast.
activate any unactivated account on fresh visit