Made website form work with new API