Added mallocs in addUser