feat: add authenticate api
feat: add register api
chore: add http code for res in auth api