Add login and register api call