trimming password before encryption