You are moving in the right direction, but the drawing you showed is not correct. However, I will offer some ideas. First, I think it will be slightly easier to draw resonance forms for the carboxylic acid; therefore, you want to have a hydrogen present on one of the oxygens. Second, when one draws resonance forms, charge is conserved. Third, only sp3-hybridized atoms cannot participate in resonance. Fourth, remember that you cannot move or gain or lose hydrogens when you draw a set of resonance structures.
If you move the lone pair on nitrogen so that it forms a double bond to the adjacent carbon, where can you place the electrons that had been part of the C=C double bond.