Made the popup window more user friendly, should be done now. All inputs are now validated although we could change the constraints. Error messages are provided accordingly