fix #311
fix migration issue with login hashcodes