fix login failure with special characters in password