Fixed the login response from 'res.send(200, {user: user});' to 'res.send(200, {user: [user]});'