Added input validation to rest of app, fixed a bug in displaying links regarding categories being deleted