sha512 on log in fix