Preventing invalid inputs into custom layout.
Removing alerts.