chaecking for id in params instead of field name