working logon and register