add login check function.
update readme content.