add register and password encryption