Add wrong credentials detection and test