Removed console logs and fixed backend