Validation usin javascript
override the context menu