Started adding function to update user details.

Username validation complete. Insert functions to be added.