Fixed crash on wrong creds