added local authentication