delete old reg files and update sign in templates