adding in extra handling and halting logon process