checks for good password