Current codebase is a bit out of sync and require some refactoring. Alongwith the middleware Authentication is broken. PS: The PR for this has already been opened. Opening this to keep progress track