changes for authentication