registration working. Also sending a request to the api is working