add signin api and template