Changed hardcoded username to a user object