Added Templates to signin method