Added naive user administration; tidied up
password hashing function