changed 'name' parameter of user prototype to 'username'