updated template for two different authentications