hp validation added, and hash style modified