changed 'user' to 'username'.