Simplified login_local a bit.