Refactor and fixed organization views
Added validation to issue API