implemented basic password validation