added case default

unexpected alert behaviour
Merge pull request #1026 from a-chumagin/master

added default case for undefined user