Adding new property.
Fixing object error and showing the alerts properly.