add user relationship with questions and answers.
add virtual attribute login_type to user.