User authentication [finish #81252050 #81165912 #81165870]

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.