add function to check password(no data now).