working on login, register api's call, fixes