fixed bug that would crash when entering wrong password