implement User model and complete current_user method

add User model and implement current_user method