Added console log to check authentication