Added HashPassword function