Append role parameter to login URLs
Fix URL hash for login failure URL