Basic error handling (uniqueness/valid input)