signin template linked to logic