registration process allowing change of password, if user number exists
small UI improvements
some common functions moved to common.php