fixed #23 Crash when entering wrong credentials
Merge pull request #24 from l--f/23_Fix

fixed #23 Crash when entering wrong credentials