Removed submit buttons and added extra check to prevent user from adding the same course twice.