Added support for special characters in credentials for login