if user is not active, flash error