import issue resolved
user auth else condition added which was missed during the refactoring