added encript function to password