clean up register and login templates