Added edit function for User