registration system changes

made some needed upgrades to the registration system. Checks for proper
email format. Also checks for duplicate email address. Also added a
little styling to the tab that is associated to the currrent page being
shown.