The cursor position is maintained when the page gets refreshed due to the server side validation and the page gets refreshed