Adding constraints for inputs