Adding a return value to the authenticate_with_password() function for an external project