Added update functions to user class