changed hashing algorithm and added flash messaging to base handler