more validation added through javascript