I now check the password here instead of using groovy script.