adding check password support