Improved the input validation
Improved the input validation

- Removed redundancy when checking for duplicates or cycles
- Added a dynamic calculation of the delay before notificationPopup hides itself
- Assigned the notificationPopup icons as variables, instead of hard coding them

naschorr/Immobile,naschorr/Immobile