Attempt at implementing logon