resource call is working correctly, page is not refreshing after the data is being sent though.