BUGFIX in hook_user_login