[fix] password reset issues. Fixes #3845. Fixes #4403. Fixes #4410

Align comment

Added the logout to the list of allowed tasks

Allow full and short notation for tasks