removed onerror and onlogin callback