AES Is it safe to expose the plaintext and cyphertext in the same place, In a web application, I need to send in a webpage form an id (my plain text) and then retrieve it back when the user submit the form.
But i need the id to be protected, so malicous users can't send an incorrect id to the server.

I was thinking to send the id and the cypher text to the client, and when i retrieve them server side, i decrypt the cypher text, and if the id don't match the decrypted value, i reject the call.
I am using AES with 256bit key.

So the question is : is it safe to do that? is there a better way? 
thank you for your help

PS : There is a business need to send the id as plain text (not encrypted) to the client.
Use a message authentication code if you want to ensure that the id is not modified by the client. Use SSL between the server and the client if you want to prevent replay etc network layer attacks from eavesdroppers. 

But a malicious client can still reuse previously received ID. If this is a concern, you need to do more (e.g. use and keep a nonce for verification).