default template changed and custom authentication added