Added basic logon logic.