modified pins controller. current_user method added