HUE-2010 [core] Configure Hue to terminate users who has not logged in X days

Added logic to AuthenticationForm.
Made it so that all backends return a User object even if it is inactive.
This make it easier to see the correct error message.
Superuser accounts are subject to this policy when EXPIRE_SUPERUSERS is set to true.