fixed problem with invalid password exception