trim()  so that md5() in login.php returns the same result

The \n at the end of pwgen's output should be removed, otherwise it ends up being part of the salt and it influences the md5() output.