Prepare for authentication