adding local authentication