Detecting short password errors and showing proper error