added new changes to authentication