Added error handling on valueselect