Adding PLAIN authentication support