Saving user improved: added ID generation.