add encrypt function in create user class