Added the check if the user is active Fixes #12