Bug Fix [JS]

Added a validation if a value is passed in a field before executing an
AJAX request