trekwar #70,  password hashing

now also checks for matching password and available username when
registering