verify ID and pass, and some functions