post done at frontend and the backend