Updated register functionality to fit login

Now assumes a database members with columns username, email, password
and validated. Page checks that username is not currently in use. Also
now uses md5 hash for some password protection as in login page.