forgot to add salt in register.c