Update user function added.

Also took first steps to implement secure password storage.