Added validations for editing and creating new debts