addressed some issues regarding the handling of wrong password entry.