Your using writevalue() in you logon script ? What kind of errors are you getting ? Do the following after your pokes...

?"ERROR @ERROR: @SERROR"

Are you getting error code 5 or something else ?

-Shawn