Added login functionality. NOTE: Mike, I seem to always get a NULL value for uid when calling the auth method. There seems to be a bug there.