added hash password method