changed fields route to match and respond to get or post