Fix undefined var from 01ecc137.
Add a check_availibility form preventing
integrity error and providing to end-user
feedback about value taken already.