fix a PHP_SELF typo
do not query database if "newaddress" was not set in request.
fix spacing.