Bug fix 2 in login code

Added id field to user.