Removed unused packages
renamed loginrequired to ensureauthenticated middleware
POST search refactoring