Implemented check for malloc() error in add_user().