re-enabling logon button at correct intervals