Added a code to alert a message should the user not enter an item an input