Add auth\reg and update template