Fixes error when wrong password is passed on logon