modified logon to register