fixed authorization
fixed resetting counter
Merge branch 'master' into production_sensibledtu1k