templatizing index and signup