adding validations, rest api and fixing imports
refactoring routing