added login and register post endpoints
completed login endpoint