Automatically hash teacher passwords.
Added teacher registration.