Added getId function to user class